<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src='h.js'></script>
		<script>
			// data = "{"componentKey":"wp_pc_common_header","params":"{\"memberId\":\"b2b-221601025288178b15\"}"}"
			// 9fcbdefce6e4b582d717e4fec4d6a73e
			// "8d553c63f1b52da15eae645f4926e934"
			
			// const token = "d48bb87b0e679806086ff83b6816d993";
			// const g = '12574478',
			// 	data =`{"componentKey":"wp_pc_common_header","params":"{\\"memberId\\":\\"${memberId}\\"}"}`,
			// 	i = (new Date).getTime();
			// let sign_key = token + '&' + i + '&' + g + '&' + data;
			// let sign = h(sign_key);
			// console.log(sign_key);
			// console.log(sign);
			const opt_set = {
				memberId: 'b2b-22118362192843c202',
				token: "e93fb7384bd780cfd86738f4012dbe8a",
				g: '12574478',
				i:1725128669969,
				data: `{"componentKey":"wp_pc_common_header","params":"{\\"memberId\\":\\"b2b-22118362192843c202\\"}"}`
			};
			let sign_key = `${opt_set.token}&${opt_set.i}&${opt_set.g}&${opt_set.data}`;
			console.log(opt_set);
			opt_set.sign = h(sign_key);
			console.log(opt_set.sign);
			let detail_url =
				`https://h5api.m.1688.com/h5/mtop.alibaba.alisite.cbu.server.moduleasyncservice/1.0/?jsv=2.4.11&appKey=12574478&t=1725160184929&sign=b0c345d092a0cf5a536ab355168936c0&api=mtop.alibaba.alisite.cbu.server.ModuleAsyncService&v=1.0&type=jsonp&valueType=string&dataType=jsonp&timeout=10000&callback=mtopjsonp24&data=%7B%22componentKey%22%3A%22wp_pc_common_header%22%2C%22params%22%3A%22%7B%5C%22memberId%5C%22%3A%5C%22b2b-2217794552566ce97d%5C%22%7D%22%7D`;
				console.log(detail_url);
		</script>
	</body>
</html>